Skip to content

Change(ChangeReason, T) constructor

Defined in

Type: Change Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public Change(ChangeReason reason, T current)

  2. public Change(ChangeReason reason, T current, T? previous)

  3. public Change(ChangeReason reason, T current, T? previous, int currentIndex)

  4. public Change(ChangeReason reason, T current, T? previous, int currentIndex, int previousIndex)

1. Overload

public Change(ChangeReason reason, T current)

View source (opens in a new tab)

Summary: Initializes a new instance of the Change class.

Parameters

NameTypeDescription
reasonChangeReasonThe reason for the change.
currentTThe current/new item value.

2. Overload

public Change(ChangeReason reason, T current, T? previous)

View source (opens in a new tab)

Summary: Initializes a new instance of the Change class.

Parameters

NameTypeDescription
reasonChangeReasonThe reason for the change.
currentTThe current/new item value.
previousT?The previous item value (for updates).

3. Overload

public Change(ChangeReason reason, T current, T? previous, int currentIndex)

View source (opens in a new tab)

Summary: Initializes a new instance of the Change class.

Parameters

NameTypeDescription
reasonChangeReasonThe reason for the change.
currentTThe current/new item value.
previousT?The previous item value (for updates).
currentIndexint (opens in a new tab)The current index of the item, or -1 if not applicable.

4. Overload

public Change(ChangeReason reason, T current, T? previous, int currentIndex, int previousIndex)

View source (opens in a new tab)

Summary: Initializes a new instance of the Change struct.

Parameters

NameTypeDescription
reasonChangeReasonThe reason for the change.
currentTThe current/new item value.
previousT?The previous item value (for updates).
currentIndexint (opens in a new tab)The current index of the item, or -1 if not applicable.
previousIndexint (opens in a new tab)The previous index of the item (for moves), or -1 if not applicable.